package com.easybuy.dao;

import java.util.List;
import java.util.Map;

import com.easybuy.pojo.Order;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    Order selectBySerialNumber(String serialNumber);
    
    int orderCount(int userId);
    List<Order> selectByUserId(Map<String, Object> map);
    List<Order> selectOrders();
    
}